package cn.ibdsr.human.transfer.companyrecommend;

import cn.ibdsr.human.db.model.BaseDTO;
import cn.ibdsr.human.db.model.CompanyRecommendImg;
import cn.ibdsr.human.util.RegUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/12 9:56
 */

@ApiModel("添加推荐企业DTO")
@Data
public class CompanyRecommendDTO extends BaseDTO {
    private static final long serialVersionUID = 4488419522803004985L;
     /** 企业名称
     */
    @ApiModelProperty(value = "企业名称",required = true)
    @NotEmpty(message = "企业名称不能为空" )
    protected String name;

    /**
     * 企业介绍
     */
    @ApiModelProperty(value = "企业介绍", required = true)
    protected String detail;

    /**
     * 是否发布（0-否；1-是；）
     */
    @ApiModelProperty(value = "照片")
    private List<CompanyRecommendImgDTO> urls;
    /**
     * 是否发布（0-否；1-是；）
     */
    @ApiModelProperty(value = "是否发布（0-否；1-是；）", required = true)
    @NotNull(message = "是否发布不能为空")
    private Boolean isPublish;


    private String isPublishDes;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private String updateTimeDes;

    private Long rank;
}
